fix insert config if not present