fixed indexparticle emitter loop