fix bug about array_search

alarmed by #134 i found another one of these problems