Tweaked the detach addition in commit [6474].