fix bug to let CatalogView work with WINDOW