Fixed bug with double values of settings.