Fix editing bug.