WIP: fixing delete edge bug