Fix bug with registration.