fix bug in detection pop_size_eq_sum_sv