fix bug in dirsettings