Fixing bug where --private-network-only option makes  fail