fixed some bar problems