fix get_search_text and get_slice