Fixes a crash on Windows x64 python