Fixed broken animation when the state does not change.
Merge pull request #3 from Eddpt/master

Fixed broken animation when the state does not change.