fix if in match