Fix a bug with rendering text in fields