PDF upload fix