Fixed event updates which were destroying the original document