error when narrowed window was moved to a new tab