fix for genparticles