Fix predicate index