fix in remove/overtype code