Fix rounding errors in the particle system