register bug fix 2