Fixed decoding critical bug