fix bug for very slow speeds