Fix predicate method in pirate