Fixed an error in the particle emitter.