fix if-match problem