Renamed incorrect variable in setting