Fixed NoneType in settings