simple patch to resolve issue-17 with autoconfigured ports.

Problem is described in issue #17.