fixed signed int problem with adler checksum