Fix a bug in refpool.