remove extraneous "fi"