reg bug fix