Fixing backend issue so PDFs can be generated remotely