Fix Issue #7
Merge pull request #11 from jianingy/fix-open-window

Fix Issue #7