fix typos in AST methods