fixed error parsing