fixed small bug in parser