Minor fix to magic.ps1