Preset D flip flop as 0 for total sum
You need a reset signal. If your flip flops have a reset input, you can just use that. Otherwise, you need to create your own reset signal by using logic gates to force the input to the flops to be 0.