Bugfix in genParticles and trigger events