Fix safari text flicker issue