Fixed possible problem when loading old settings