buggy grammar matching