animations[0] is undefined