Update MagicHat.php