fixed a bug in the animation class
Merge branch 'development'