fix to bipartition idex output