fix parser rules