avoid text flicker