Fixed putIntoPool function