Fix to properly call pdfviewer