Fix the wildcard check.