Mistakes In Salah/ Sujood As Sahw
The principle is, if you can rectify a mistake, then rectify it during the prayer; if you cannot rectify it, then without rectifying it, complete the prayer and perform sajda sahew at the end.