Remove erroneous endif