set isLoading to false even if request fails