Fixed bug in thread start - startSimulation