Fix bug in createSettingsTable snippet