Bugfix: Detach, null exception when Parent.Modified is set