clone ast if it use for more than one package, to avoid crash on compression