fix for crashes on windows 64