fix merge-pdfs function
Merge branch 'fix-merge-pdfs' into fork-master