fix flash of unstyled text