# How to use \note[itemize] for frames with overlays

I'd like to have notes on each slide of a frame I use overlay options like itemize[<+->] or \alert<2>. The following codes make the notes appear in the end. Using \note{itemize} inside the frame results in an error. Any suggestions?

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{pgfpages}
\setbeameroption{show notes on second screen=right}

\begin{document}

\begin{frame} %\note[itemize] {\item first note for the whole frame \item second note for the whole frame} %%% uncomment for reproducing error
\begin{itemize}[<+->]
\item first item
\item second item
\end{itemize}
\end{frame}\note[itemize] {\item first note for the whole frame \item second note for the whole frame}

\end{document}