fix an issue negative integer may not be packed/unpacked correctly.