fix where P2P net is initialized