Fix #endif position