Fix a bug with multiple matching
Merge pull request #9 from jbleuzen/master

Fix a bug with multiple matching, thanks @jbleuzen