Bug fix: use correct file name when reading and writing setting