magnet bug fixed