fix the Reg