Fixes #366, multiple named modules triggered incorrect toTransport parsing.
snapshot