Fixed bug with allow landscape and iPad