fixed the editing of entities when the unique field wasn't changed