fix in animationFactory