Fix bug in the pool.