Fix for statusbar refresh issue on Ubuntu