Fixing bug with bar width