ERP-52 - fixed bug with pool size not being initialized.