fixing pdf issues