fixes problem with beregex_list not returning first match