Fix missing endif