Fix an issue with registration.