fix mage