add missing endif marker