Fixed acceptAll method in AST