fix progress widget logic bug