Fixed the bug which was keeping the animation from working