fix deleting of records via REST