endif tag build failed