DK: fixed bug in sim.popn.secrgam