Minor fix to saveDocument.php