Fix to registration.
Some style fix.