Improve the grammar of the text:
We were afraid that we would have to stay here one more night if the plan couldn't be fixed and he would miss his flight.
We were afraid that we would have to stay here one more night if the plane couldn't be fixed and he would miss his flight.