bugfix to stim_event