Spherical coordinates: inconsistent notation
Make sure:
use
\theta
instead of
\vartheta
use the order
(r, \varphi, \theta)
everywhere.