Fixed stack overflow in Windows due to pool compression