diff --git a/public_html/script.js b/public_html/script.js
index 1838629..9ef4b85 100644
--- a/public_html/script.js
+++ b/public_html/script.js
@@ -414,5 +414,7 @@ function selectPlaneByHex(hex) {
Planes[SelectedPlane].funcUpdateLines();
Planes[SelectedPlane].marker.setIcon(Planes[SelectedPlane].funcGetIcon());
}
+ } else {
+ SelectedPlane = null
}
}