Massive bugfix for settings not being applied properly.