Correct handling device orientation