Fixed some consistency problems with pdfs