Fix for predicate query.