Fix a bug: average speed is incorrect.