fix speed variable initialize