bug fix, events were not removed properly in State.resetTo