Fix bug when stim starts after samples start