fix a crash bug.add setting(local and file).