fix a subtle bug in EDIT, so now it acts as you'd expect