private void generateBlankTileBars(){
		//TODO: BUGS EVERYWHERE IF THIS ISN'T RESET TOOK ME 5 HOURS TO FIGURE THIS OUT
		selectedChapters = new ArrayList<>();
		for(int i = 0;i < repository.size();i++){
			selectedChapters.add(new ArrayList<Integer>());
		}
		
		//Clear all old tilebars.
		for(int i = 0;i < tileBarViews.size();i++){
			if(tileBarViews.get(i) != null){
				tileBarPanels.get(i).remove(tileBarViews.get(i));
			}
		}
		tileBarViews.clear();
		
		//Get the text from the query fields.
		getTextFromFields();
		
		//Update Tilebars.
		for(int i = 0;i < repository.size();i++){
			tileBarViews.add(new TileBarView(repository.get(i), i, thisInstance, USE_CHAPTER_FREQUENCY_COLORING, coloringMode, 20, 20, redQueryList.get(i), greenQueryList.get(i), blueQueryList.get(i), redQueryStrings.get(i), greenQueryStrings.get(i), blueQueryStrings.get(i)));
		}
		updateTileBarInterface();
	}