Fix NetworkMain.