fixed syntax error: missing fi