Fix unreferenced variable regs