Correct handling of periodic perticle neighboors