fixed max nagative speed bug