fixing G-Reg build.