fix missing endifs

Change-Id: I434053bb174bc79dfd0ef6bc5459e80d7170eafc