#37 add missing endif