typo in isWindow()