Fixed stupid edge removal  bug