fixes in the animation script