Restore mistakenly removed detaching.