handle detached character in more places