Fixed up if/endif.