Fixed some incorrect JSON issues with PDF's