fixed a bad bug with the pool wrapper