By polar decomposition of a square invertible matrix $A$, I understand $A = |A| U$ for some unitary matrix $U$, where $|A| = \sqrt{A^\dagger A}$ with $\dagger$ denoting the conjugate-transpose operation. Now in Nielsen and Chuang's book, chapter 9, I find the following statement
$\dots$,apply the polar decomposition $\sqrt{\sqrt{\rho} \sigma \sqrt{\rho}} = \sqrt{\rho}\sqrt{\sigma} U$, $\dots$
But following the definition, if $A= \sqrt{\sqrt{\rho} \sigma \sqrt{\rho}}$, then $A^\dagger A = (\sqrt{\rho} \sigma \sqrt{\rho})^\dagger \sqrt{\rho} \sigma \sqrt{\rho} = \sqrt{\rho} \sigma \rho \sqrt{\rho}$, and the polar decomposition should read
$$\sqrt{\sqrt{\rho} \sigma \sqrt{\rho}} = \sqrt{\sqrt{\rho} \sigma \rho \sqrt{\rho}} U.$$
This seems different from what is mentioned. I'm surely missing something here!