Fixed a bug around GC