Fixed error in responding to changes in settings