fixed bug whereby wildcard was being used incorrectly