fixed bug with iterative search in rabble_array