fix small bug for text_for_search