fixed #4 rotation in iOS8