fix gaia memset bug in 64-bit machine.