fix wrong #endif placement, typo