Fix bug for text_for_search