fixed reg bug