Fix: forgot to set mode.name for global_grammar.