diff --git a/environment_indicator.module b/environment_indicator.module
index ab451db..0fc1980 100644
--- a/environment_indicator.module
+++ b/environment_indicator.module
@@ -183,7 +183,7 @@ function environment_indicator_ctools_export_ui_form(&$form, &$form_state) {
     '#type' => 'textfield',
     '#title' => t('Color'),
     '#description' => t('Color for the indicator. Ex: #D0D0D0.'),
-    '#default_value' => $environment->color ?: '#D0D0D0',
+    '#default_value' => $environment->color ? $environment->color: '#D0D0D0',
     '#attached' => array(
       // Add Farbtastic color picker.
       'library' => array(
