fix offset by 1 in simul