Fix the new/delete overriding problem in MAC
TO Do:
    Fix the problem in Linux