fix an issue with modifying documents after a network request (sign / countersign)