fix a few bugs in edit service