Fix search_prompt problems