Fixed non-looping animation bug.