Remove dangling endif