fix badge bug when request failed