Fixed another simulation bug.