fix for text flicker