fix the errors in generating documents
fix the errors in generating documents