fixes bug with bar