diff --git a/index.html b/index.html
index 83f30c3d..5497b621 100644
--- a/index.html
+++ b/index.html
@@ -15492,6 +15492,7 @@ window.onload = function() {
function autoGen(newname,element,autoType) {
var autoInfo = autoElements[autoType];
var newcolor = elements[element].colorObject;
+ if (!newcolor) { newcolor = {r:255,g:255,b:255} };
var colorList = [];
var colorObjectList = [];
// if newcolor is not an array, put it in an array