Fix bad endif