Fixed bug in settings file