That could be the problem. I'm enabling the whole gameobject. I fixed it by calling rebuild right after setting the text.