Fixed magnet errors