fix pdf problems