Fix index_tuple_filter and index_tuple_replace.