Fix #61: Subtotal values aren't checked correctly