p_rotate correction