fixed modal_search bugs