reg bug fixed