Fix a crash with MSVC debug builds.