Fixed bug in match_compare.