Fix ticket-query.