fixed bug when run garbageCollect