fixed window variables initialization bug
Merge pull request #12 from akiomik/hotfix/support-other-buffers

fixed window variables initialization bug