Fix wilcard in pattern matching