fix bug in GetNeighbour()