Fix bug "protocol error" bug when saving config settings.