fixed cutoff bug in unify_counts.py