[Tex/LaTex] Beamer table of contents custom bullets: Long section titles do not align

beamerhorizontal alignmentsectioningtable of contents

I have redefined the table of contents bullets in my slides to a circled number. However, long section titles which span more than one line do not align with the text from the previous line but with the section number. How can I fix this?

Minimal working example

\documentclass{beamer}

\usepackage{tikz}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
            \node[shape=circle,draw,inner sep=1pt] (char) {#1};}}

\setbeamertemplate{section in toc}{
    \protect\usebeamercolor[fg]{enumerate item}%
    \protect\circled{\inserttocsectionnumber}~\inserttocsection%
}

\begin{document}

\section{some really long title some really long title some really long title
         some really long title}

\begin{frame}{Contents}
    \tableofcontents[currentsection,hideallsubsections,subsubsectionstyle=hide]
\end{frame}

\end{document}

Best Answer

The following answer is based on

beamerbaseauxtemplates.sty

Just switched the colours a bit and the linestyle

\documentclass{beamer}

\setbeamertemplate{section in toc}{
    \leavevmode\leftskip=2ex%
    \llap{%
        \usebeamerfont*{section number projected}%
        \usebeamercolor{section number projected}%
        \begin{pgfpicture}{-1ex}{0ex}{1ex}{2ex}
            \color{bg}
            \pgfpathcircle{\pgfpoint{0pt}{.75ex}}{1.4ex}
            \pgfusepath{stroke}
            \pgftext[base]{\color{bg}\inserttocsectionnumber}
        \end{pgfpicture}\kern1.25ex%
    }%
    \inserttocsection\par
}

\begin{document}

    \section{some really long title some really long title some really long title
        some really long title}

    \begin{frame}{Contents}
        \tableofcontents[currentsection,hideallsubsections,subsubsectionstyle=hide]
    \end{frame}

\end{document}

enter image description here