         }
 
         // Insert data into collectionView without moving it
-        let indexPaths = dataController.insert(objs)
         let contentHeight = collectionView.contentSize.height
         let offsetY = collectionView.contentOffset.y
         let bottomOffset = contentHeight - offsetY


        CATransaction.begin()
        CATransaction.setDisableActions(true)
        let indexPaths = dataController.clear()
        UIView.performWithoutAnimation {
            collectionView?.performBatchUpdates({
                self.collectionView?.deleteItems(at: indexPaths)
            }, completion: { _ in
                CATransaction.commit()

            CATransaction.begin()
            CATransaction.setDisableActions(true)
            collectionView.performBatchUpdates({
                let indexPaths = self.dataController.insert(objs)
                collectionView.insertItems(at: indexPaths)
            }, completion: { _ in
                let shouldScroll = self.isContentBiggerThanContainerHeight()
