fix uint64 <--> int64 conversion panic