Fixed pdf problems