Fixed removeNeighbor.