fix Bar() maltfunction