Remove bad endif