Fixing bug with screen rotation on tablets.