Merge pull request #2 from hannorein/master

fixed crash on small windows