Fixing the particle system memory curruption stuff