fixed error when parsing the result