fix missing endif

Change-Id: Idf442f3822280517a27c871029af8ec54b8cde05