Fix orientation bug with iOS8