Fix another bug in the registration process.