Fix for config write