some fixes to bar widget