Fixed bug on windows7