Fixed bug on Windows.