Fix bug in settings