Fix uninitialized bar indexes