How to avoid text flicker ?