add a check for a cursor open in a modify operations.