Fixed bug with screen orientation