fixed the id_shear - id_pair bug