added early stop when TicketID is missing