Fixed error with the registration