Reg bug fixed