fix for 1 page pdfs