fixed animation problems
Merge pull request #12 from jcavar/master

fixed animation problems