quick fix to attach document.save