Fixed #endif warning