Fix the bug in get predicate scope to get the scope of all predicates
and write them in 55 files