Fix unload setting file issue