Fix mismatched if-endif block.