Fixing the order in which settings are applied