diff --git a/views/default.handlebars b/views/default.handlebars
index eeb41c32..f98f2c0c 100644
--- a/views/default.handlebars
+++ b/views/default.handlebars
@@ -5618,7 +5618,7 @@
x += '';
if ((connectivity & 1) && (meshrights & 8)) { x += ''; }
//if ((connectivity & 1) && (meshrights & 8) && (node.agent.id < 5)) { x += ''; }
- if ((node.agent.caps & 1) && (connectivity & 1) && (meshrights & 8) && ((meshrights == 0xFFFFFFFF) || ((meshrights & 4352) == 0))) { x += ''; }
+ if ((node.agent!=null) && (node.agent.caps & 1) && (connectivity & 1) && (meshrights & 8) && ((meshrights == 0xFFFFFFFF) || ((meshrights & 4352) == 0))) { x += ''; }
// Custom UI
if ((customui != null) && (customui.devicebuttons != null)) {