Fixed memory leak caused by circular shared_ptrs