fix progress bar for narrow window