But if the case of Imam passing wind in the middle of the Salah, at least in Shafi'i, the one behind him can go to the front and continue the salah as the Imam (also need to recheck this). والله اعلم