Fixed bug with settings.