fix array_search