fixed bug in PDF fetching pdf