Adds missing endif tag