fix match where it was only returning 1