bug fix in Simulation::updateData