Fix samid decoding error.