diff --git a/src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js b/src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
index c16fd46e6c74ee7f14709f592acc5307639232af..99fbfba8e294e8c48326e435e3fee3a6e67bf8be 100644
--- a/src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+++ b/src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
@@ -364,15 +364,12 @@ var regionChooser = (function(){
 	
 	publicScope.clickety_click = function() {
 		console.log("You clicked pretty well");
-		var checkboxes = document.querySelectorAll("input.select_citygml");
-		if (checkboxes.length === 0){
-			//FIXME: Wrong. There are at least one checkbox.
+		var checkedBoxes = Array.from(document.querySelectorAll("input.select_citygml")).filter(x => x.checked);
+		if (checkedBoxes.length === 0){
 			console.log("You should select at least one citygml, though.");
 		} else{
-			checkboxes.forEach(x => {
-				if (x.checked){
-					console.log("Nice! You checked Citygml " + x.id)
-				}
+			checkedBoxes.forEach(x => {
+				console.log("Nice! You checked Citygml " + x.id)
 			});
 		}
 	}