misplaced #endif correction