fix #32
Merge pull request #33 from hukewei/keweihu/rotate_fix

Keweihu/rotate fix