Fixing a bug when I change the place of config file