bug fix in earley_p.py