minor bug fix to registration