Fixed the version; now it works fine for multiple matches