Fixed probem with edges deletion