Fixed checksum to always have 16 bits