Fixed orientation to work on iOS6 (as well as still work on iOS5).