fix text glitch when animating