fix crash in map directory settings