I'm not sure if this happens for every paradigm, but I saw an example (tuning_curve paradigm) in which stopping and restarting the paradigm appears to reset Dispatcher.indexLastEventEachTrial (which gets saved as events/indexLastEventEachTrial). The eventCode vector however still contains trials before the paradigm was stopped.