fix search in array