Fixed breaking bug in Animate.js.