fix oversight in RestrictedNGramGenerator