fix rotation,preference issue