In all cases there is no need to repeat the namaz rather you can correct it. But if anyone wants to repeat his/her namaz once again then Niyyat will be wajib Qurbatan ilallah .
Also please check this link for the detailed rules regarding repeating or correction once salat.
http://www.islamic-laws.com/salatdoubts.htm