     @IBInspectable var intrinsicHeightCells: Bool = false
 	
 	fileprivate var isDynamicLastCell: Bool = false
+	fileprivate var needRefreshDynamicLastCellHeight: Bool = true
 	fileprivate var dynamicLastCellHeight: CGFloat?
 	fileprivate var previousRowFrame = CGRect()
 	

    
    // MARK: - UITableViewDelegate
	override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
		if filledUsingLastCell && dynamicLastCellHeight == nil {
			if let indexPathsForVisibleRows = tableView.indexPathsForVisibleRows,
				let lastIndexPath = indexPathsForVisibleRows.last,
				lastIndexPath.row == indexPath.row

		if availableHeight.rounded() >= lastCellIntrinsicHeight {
			dynamicLastCellHeight = availableHeight
		}
		needRefreshDynamicLastCellHeight = false
	}
	
	func refreshDynamicLastCellHeight() {
		needRefreshDynamicLastCellHeight = true
		DispatchQueue.main.async {
			self.updateFillUsingLastCell()
			self.refreshCellHeights()
