Fixed onNeighborUpdate check