fix missing #endif