Fixed bug in Register.
Martin