Debugging a NaN in the velocities: not resolved