Minor fix of type for saveDocument..