Fixed Mage script missing issue