fixed the registration