Fixed the pool code