Fixed typo in mag init