fixed text display bug