fixed some stuff with the changeSpeed function
fixed some stuff with the changeSpeed function