Fixed register naming in reset function