fix bug 221 in legacy, deleting wrong records in the molgenis forms