Fix device orientation