Fixed a typo in the register script.