Fix the asserstion fail when loading grammar.json file.