bugfix animationHandler