bugfix for particle positioning