fixed issue where changing animations would cause the first play through of the animation to stop after a small amount of frames