removed an useless call of state.OnReset