Fix saveDocument error display