Fix garbage collection fix bug.