Bugfix for pdf printing