Fixed bug: Rotate device during animation = crash

Fixes #13