Fix an animation bug.