fixed bug on edge delete