Fix bug with match_any = FALSE