fix max move speed logic