fixed bug : customize the document_dir Error