minor bug of average time calculation