Fixed bug with bar positioning.