Fix error caused by difference length of slabs and items.