fixed settings crash