Fix some windows bugs

- Fix test failed on windows cli : 0055f23
- Fix bug CRASH 113