Fixed issue with screen orientation