fixed the registration issue