Fixes write to config.