standby test and fix some bugs

why we need to make a new map when stopping the peerhub?