fixed errors in Parser