Fixing badge deletion