fix text appearing bug