Fixed repeating bug.  Animation test will no longer crash after one loop of the animation.