hotfix for windowId issue