grammar recogize bug fix