Fix bug accessing wrong attribute to get network name