Fix orientation issues in iOS < 7