Update MagicProcess.cpp