fixing network modes and FDN crash

Change-Id: I7b53fe5ace872e1cc08854e771b6f9bd9093c081