Fix to call one time the reset function