Fix editing of locators

When editing existing locator the changes were not being saved.