corrections to BarMap for negative bar number support