I think you accidentally deleted the loop to add tids.