Fixed list of used elements when undoing or redoing graph edits.