bugfix in refcount logging