Fixes magnet handling.

Now the multiple instances issue...