fixed refcount gc