fixed missing #endif