Fixed location of #endif