fixes when adding/removing a badge