Reset wgt after rename

Reload the wgt after rename to refresh the session. Otherwise an error would occur on the next call.