fix magnet loading