fixed bug in parser