Bug fixed when loading an inexistant dir by prefs