Fix assigning values in settings menu