fixed a bug that delayed drawing of the statusbar