Fixed a bug where the total time was never used or updated