Ensure grammars are only activated once