fix wildcard handling