fixed NewTransport example code

Yeah, me too. Let me update this PR then :)