Fix crashes in 64-bit.