missing preprocessor endif fix