Fixed bug in predicate string