Animation blinking fix