fix animation blinking