Fixed a bug with bar widget, that it could draw the wrong texture in certain circumstances.