handle the case of speed being 0 or less, so that we don't lock up release builds.