Repairing config xml