fix check for non-zero running total