Bugfix multithreaded pooling