fix changing of predicate