Fixed for a minor bug on windows