fix global name 'tabbed_or_stacked_window' is not defined