fixed some issues with the revision thing on pdfs