[#1967] set a default server id for tempZone, fix bug in hashing SID and fix a packing instruction