fix a bug and print predicate tree in xdot syntax