Bug fix at user reg.