fix the animator bug