fix  bug of mem_region