Fix editing of locators

When editing existing locator the changes were not being saved.
Merge pull request #6 from petermcdaid/master

Fix editing of locators