fix nparticles