Fix bug 1030797

* attempt update before insertion for register (since delete
  doesn't seem to always work right)