Stop filtering when the first match was found