fix checkDef for mass-edit