Reset current network when the map is updated

(cherry picked from commit 9d76ac09613eaf0eb78a31add19bec16e048a59a)