fixed issue #7 in Windows