[bugfix] fix active window and active tab

fix

fix