fixed bug in get_slabs()