Fixed bug causing text to appear when being set after frame size has been calculated