Fix overflow issue in x64