resets modified flag of entity and aspect nodes upon exit