Fix bug where an id with wildcard would still work