fixed a bug in MonitorParticles