text display bug fixes