fix memory user allocator crash bug.