Fixed a bug related to wildcards.