bugfix for output pdf 'missed )'