Fixed some syntax errors in parser