added fix for determining if the underlying source has less elements than the wrapped one