Fix ptr bug in slab