small fix in reset.