weird errors when creating files on windows