Fixed hook.newVelocity bug