fix endif