fixed rotation fail
Merge pull request #12 from luggi/rotationfailfix

fixed rotation fail