Fixed average speed bug.