fix #endif without #if