Registration bug fix.