Use the shortest match instead of first the one