Memory pools were allocated with wrong size