Fix onmouseover animation glitch