fixing migration for deleted state of a badge