fix remaining prev/next flags