Bugfix on windows