Fix typo in reset function.