Fix for modals on PDFs.