Fix multiple wildcard bug