BP output: fix duplicates in vectors