fixed a casting related error related to predicate selectivity.
predicate ID is not String, but is long.