Fixed a config update bug