fix remove.edge scoping