fix text refresh issue