Fixed error when copying PDFs from lattice to sendBuffer.