Bug fix in particle.java