fix build

need another #endif here to go along with the new #ifdef