fix not able to gc objects because of circular ref