fix bug to support 64bit.