 +		if (ksGetSize(realModes)) {
 +			ptr->mon_modeline_lst=(XF86ConfModeLinePtr)
 +				xf86addListItem ((glp) ptr->mon_modeline_lst,
-+					(glp) ksToModes(realModes));
++					(glp) ksToModes(handle, realModes));
 +		}
 +
 +		ksDel(realModes);

+		/* assemble sub-structures */
+		ptr->conf_files = xf86getFiles (handle, rootKey);
+	
+ 		ptr->conf_flags = xf86getFlags (handle rootKey);  
+	
+		/* keyboard, mouse and generic input */
+		ptr->conf_input_lst = xf86getInput (handle, rootKey);

+		optionKeys = ksNew();
+		kdbGetChildKeys(handle, options,optionKeys,KDB_O_SORT | KDB_O_DIR);
+		if (ksGetSize(optionKeys))
+			screen->scrn_display_lst=ksToDisplays(handle, optionKeys);
+		xf86conffree (options);
+		ksClose(optionKeys);
+		
