Fixed issue where network_id could be 0