 			y = nextY
 		}
 		
-		print("ERROR: Couldn't find a cell that would contain y of \(centerY)")
+		print("ERROR: Couldn't find a cell that would contain y of \(anchorY)")
 		return nil
 	}
 }

	}
}

// This class handles the simultaneous scrolling of two scroll views
class ScrollSyncManager: NSObject, UITableViewDelegate
{

		updateVisibleRowHeights(forTable: scrolledTable)
		updateVisibleRowHeights(forTable: syncTarget)
		
		if let targetIndex = matchIndex(of: pathFinder(syncTarget, pathId), onSide: syncScrollSide, atPosition: anchorPosition)
		{
			// Scrolls the other table so that the matching cell is visible
			syncScrolling = syncScrollSide
			syncTarget.scrollToRow(at: targetIndex, at: anchorPosition.scrollPosition, animated: true)
		}
	}
	
