Fixed bug where AST was not pruned properly on failure
Updated podspec