fix console bug "setBadgeText"