cp bug on windows fixed