Fix total not committed.

Signed-off-by: Marco Casella <marco.casella@gmail.com>