Fixed issues with target velocity.