fixed the empty cart bug and deprecated the line_item model