fixed pool debug threads check