fixed compile errors in parser