fix closing if tag