Fixing bug where a pulse before the pulse decay time would not clear the resting state.