fixed hang when settings.txt is missing