Fixed bug in computation of initial velocity.