\ProvidesPackage{fixtitling}

\RequirePackage{titling}
\ifx\titlingpagestyle\undefined
  \RequirePackage{hotplug}
  \newcommand\titlingpagestyle[1]{%
    \def\@bstps{#1}%
  }
  \newcommand\@bsdefaulttitps[1]{%
    \titlingpagestyle{#1}%
  }
  \newcommand\@bsrealtitps[1]{%
    \thispagestyle{\@bstps}
  }
  \HotReplace\titlingpage\thispagestyle\@bsdefaulttitps
  \HotReplace\endtitlingpage\thispagestyle\@bsrealtitps
\fi
