Fix magnet duplicate magnet error