Fixed the garbage collect