fixed bug in PDF storage