fixed minor bug to parse