main:Add missing endif