Fixed deleting of networks.