Correct crash in Windows