fixed window pop-out bug, which incidentally will improve performance