Corrected 'fi' to 'if'