On the hidden U(1) gauge symmetry in the nonlinear sigma model