mage fix