fix settings crash