Remove extraneous endif