Fix isWindowActive whith sheet attached