fixes compatibility issue #3.
slicing the capacity is not really important here.