fixed Int64 issue for 32bit systems