fixed the bug for mpool