fix rh registration type logic