Fix an issue with periodicity in the new neighbour list