fixed slab bug on mac