some bugs in decoding_mdr_I()