hopefully fixed underflow when converting a 64-bit min int64