Remove extraneous `endif'