Fixed duplicate application of settings when loading from cookie values