Workaround bug that turns off PDF mode.