dealt with garbage collection bug