Corrected crash on Windows.