Attempting to avoid detached head.