fix multiple resets