Fix bug in projection against wildcards