Fixed GC bug