corrected error in SimulationPanel