minor fix in get_integ_mag
glob var in decont_algor_bys and reduce_membership