Removed semicolon after fi statements