fix safeOp