Fixed bug on deleting of edges