Fixed communication bug.

Fixed pdf print