Fixes a bug

that when we have more than one record we cannot edit any record.