fix export on windows