Fixed correct setting of settings