Fix issue in r_cons_grep()