diff --git a/frontend/face-explorer.html b/frontend/face-explorer.html
index 184a348..72edca9 100644
--- a/frontend/face-explorer.html
+++ b/frontend/face-explorer.html
@@ -95,6 +95,10 @@ function makeFaceBoxes() {
const el = document.getElementById("photo"),
photo = photos[photoIndex];
+ if (!photo.faces || !photo.faces.length) {
+ return;
+ }
+
let width, height, offsetLeft = 0, offsetTop = 0;
/* If photo is wider than viewport, it will be 100% width and < 100% height */