fix the registration