fix id non uniqueness of gas and dm.