fixed bug related to whether the name of the predicate is uppercase or lowercase. Now it's the same case as in the original Java file