fix of generating velocities
fix of generating velocities