fix end of file unexpected (expecting "fi")