fixed minor bug with speed cap.