fix #346
Merge pull request #347 from gordonwritescode/bug/peerdiscovery-network-ref

fix #346