fix error with total time
some bugs with empty database