Gluing the magnets for the rack
Place some wood glue into the holes you made the press in the magnets letting sit for a few minutes.
Place some hot glue into the holes you made the press in the magnets letting sit for a few minutes.