Restoring broken relationships