fixed subtotal problem