fix bar width issue