Fix network creation

Bounty #123