fix for subtotal