Fixes iOS orientation bug when app is started in portrait.