Fixed bugs so I can re-run the sims.