Bugfix in getAveragePace