fix rotation finally. Forgot to sync ghost and p states