Bug with screen rotation solved.