diff --git a/src/advanced.py b/src/advanced.py
index 74d9966da2b9c1c5db475fad812f6496cbcea46d..d5ed451d0f25b0ed2b2edd329624cb7dc706a8c6 100644
--- a/src/advanced.py
+++ b/src/advanced.py
@@ -262,8 +262,10 @@ class AdvancedConfigurationWindow(object):
 				if name == 'password':
 					value = _('Hidden')
 				else:
-					value = self.right_true_dict.get(option[OPT_VAL],
-						option[OPT_VAL])
+					if type_ == self.types['boolean']:
+						value = self.right_true_dict[option[OPT_VAL]]
+					else:
+						value = option[OPT_VAL]
 				self.model.append(parent, [name, value, type_])
 
 	def visible_func(self, model, treeiter):