fixes github #15 by adding default value of -999 when settings is null