Fix the resetBadge