Fix `do_edit` signature