fix the animation warning