hopefully fixing negative velocities