Fix incorrect variable reference
Invalid ValidGrammar.valid instead of Utils.valid