Current window id initialization hotfix