fixed bugs that manifest when multiple dsSimulationLoop()s are called.
fixed bugs that manifest when multiple dsSimulationLoop()s are called.


forrestv/opende,forrestv/opende,forrestv/opende,forrestv/opende,forrestv/opende