Fixed output issue on windows