Fix rendering of text in text boxes