fix cleanup api misuse in ASTOp getMean