fix exception for missing network in name generator