Fix typo
Rename window to windowId