Fix rotation issues on all versions of iOS