Fixed a bug concerning total time.