registration bug fix