bug fixed --> currentAnimationId not initialised