fixed cleanup_pool