fix pdf issues