Fix to ensure the wildcard selector only selects files