fixes line item creation bug