after NM is reconnected. Contributed by zhihai xu (cherry picked from commit 5b5bb8dcdc888ba1ebc7e4eba0fa0e7e79edda9a)