Fixing orientation bug on < iOS 6.0