fix best_time calculation