Fix missing endif

Change-Id: Ie48467af097f387a2bb20e09fbf94429ffb52e49