fixed badge error for empty count buffer