fix bug with wildcard matching single object

when wildcard in the `swift://` path was matching only single object some strange things happened