register bug fix 1