made VelocityDist a local variable (follow-up to 93b043f5093)