Fix key error for pdf downloader