hack to make the bar work