Fixed bug with local settings.