fix badge thread error.