fix bug between multi tab/window