Fixed an issue with restoring settings.