bug fix for mem_pool