Fixed bug in AverageTime