Make potential fix for runtime crash on windows