fix for predicate is not defined