reg_id various fix