fix average speed bug, fix some dependency versions