fixing mysterious line item parsing error