diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py
index 3983b6aba2287d1b1b708560f5cd44872c009d8c..78de6a79d2ff93d13458e6bb8b81310348a5e277 100644
--- a/src/gtkgui_helpers.py
+++ b/src/gtkgui_helpers.py
@@ -962,11 +962,17 @@ def make_jabber_state_images():
 	'''initialise jabber_state_images dict'''
 	iconset = gajim.config.get('iconset')
 	if iconset:
-		path = os.path.join(helpers.get_iconset_path(iconset), '16x16')
-		if not os.path.exists(path):
+		if helpers.get_iconset_path(iconset):
+			path = os.path.join(helpers.get_iconset_path(iconset), '16x16')
+			if not os.path.exists(path):
+				iconset = gajim.config.DEFAULT_ICONSET
+				gajim.config.set('iconset', iconset)
+		else:
 			iconset = gajim.config.DEFAULT_ICONSET
+			gajim.config.set('iconset', iconset)
 	else:
 		iconset = gajim.config.DEFAULT_ICONSET
+		gajim.config.set('iconset', iconset)
 
 	path = os.path.join(helpers.get_iconset_path(iconset), '32x32')
 	gajim.interface.jabber_state_images['32'] = load_iconset(path)