fix indeterminate progressbar not completing if http request fails