Fixed bug on the encoding of match when there is no field