Fixed the update and edit.