Fix bug Magnet