fixed errors in the line parser