Fix variable typo in master_reg_req