fixed a bug where pred in btree_array at times would not live up to contract for non exsiting pred