resolve crash when poping over without a defined window
bugfix