Fixed insideous bug from mutating  while iterating over it, thereby not adding the  transition to every item in the dangling_ptr_list