Fixed bug where advanced magnets would'nt save their charge