fixed line_item creation bug