fixed bug in settings module code