fixes a TimePanel Bug when currentIteration was bigger than maxIteration
It occured when the number of iterations was set during simulation mode
to a value smaller than than the current Iteration.
The currentIteration will now be set to the number of iterations and the
simulation will be stoppped.