undo document injection