fixed a bug adding magnet task